package org.budo.cmbc.direct.sdk.entity;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author lmw
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
public class MELEGetPhoneCodeResponse extends AbstractCmbcDirectResponse {
    private static final long serialVersionUID = -7335256302512546421L;

    private String messageTaskId;

    public MELEGetPhoneCodeResponse(String channelJnlNo, String responseJson) {
        super(channelJnlNo, responseJson);

        JSONObject jsonObject = JSON.parseObject(responseJson);
        this.setMessageTaskId(jsonObject.getString("MessageTaskId"));
    }
}